package com.guli.gulimall.product.feign;

import com.guli.common.utils.R;
import com.guli.gulimall.product.vo.SkuVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author WZH
 * @title: FeignSearch
 * @projectName gulimall-java
 * @description:
 * @date 2022/1/7
 */
@FeignClient("search")
public interface FeignSearch {

    @RequestMapping("/addAll")
    R addAll(@RequestBody List<SkuVo> collect);
}
